xen/arm: mm: Use the PMAP helpers in xen_{,un}map_table()
authorJulien Grall <jgrall@amazon.com>
Sat, 11 Jun 2022 11:21:17 +0000 (12:21 +0100)
committerJulien Grall <julien@xen.org>
Sat, 11 Jun 2022 11:29:06 +0000 (12:29 +0100)
commitde5fdb562c3c31639becb4548540fcf58afbc485
treec898cf391f8a3433282ea7381f414f7f03182d27
parent53098ba58101f64b61c314ab8c5c95db798563e7
xen/arm: mm: Use the PMAP helpers in xen_{,un}map_table()

During early boot, it is not possible to use xen_{,un}map_table()
if the page tables are not residing the Xen binary.

This is a blocker to switch some of the helpers to use xen_pt_update()
as we may need to allocate extra page tables and access them before
the domheap has been initialized (see setup_xenheap_mappings()).

xen_{,un}map_table() are now updated to use the PMAP helpers for early
boot map/unmap. Note that the special case for page-tables residing
in Xen binary has been dropped because it is "complex" and was
only added as a workaround in 8d4f1b8878e0 ("xen/arm: mm: Allow
generic xen page-tables helpers to be called early").

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c